package com.aaa.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

//@Configuration
public class SpringmvcConfig {
    @Bean
    public CommonsMultipartResolver commonsMultipartResolver(){
        CommonsMultipartResolver commons=new CommonsMultipartResolver();
        commons.setDefaultEncoding("utf-8");
//        commons.setMaxUploadSize(1024L);
        return commons;
    }
}
